﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Crosland.Automotriz.Core;
using Crosland.Automotriz.Data.Dao.Linq;

namespace Crosland.Automotriz.Logic.Linq
{
    public class clsT_Log_Material_ImagenLogic
    {

        public List<T_LOG_MATERIAL_IMAGEN> ListaPorIdMaterial(int intIdMaterial)
        {
            clsT_Log_Material_ImagenDAO materialImagen = new clsT_Log_Material_ImagenDAO();
            try
            {
                return materialImagen.ListaPorIdMaterial(intIdMaterial);
            }
            catch (Exception ex)
            {
                
                throw ex;
            }
            

        }

        public bool Insertar(T_LOG_MATERIAL_IMAGEN Obj)
        {   
            clsT_Log_Material_ImagenDAO materialImagen = new clsT_Log_Material_ImagenDAO();
            return materialImagen.Insertar(Obj);
        
        }

        public int UltimoNumero()
        {
            clsT_Log_Material_ImagenDAO materialImagen = new clsT_Log_Material_ImagenDAO();
            return materialImagen.UltimoNumero();
        
        }

        public bool EliminaPorIdMaterial(int idMaterial)
        {
            clsT_Log_Material_ImagenDAO materialImagen = new clsT_Log_Material_ImagenDAO();
            return materialImagen.EliminaPorIdMaterial(idMaterial);

        }
    }
}
